package common;

import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@Component
public class Resquest {
    private Integer code;
    private String message;
    private Object data;
    public Resquest sueccess(int code, String message, Object data){
        this.code = code;
        this.message = message;
        this.data = data;
        return this;
    }
    public Resquest error(int code, String message){
        this.code = code;
        this.message = message;
        return this;
    }
}
